IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > With Method : With<TQuery>(TQuery,QueryStrategy) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function With(Of TQuery As IEntityQuery)( _ ByVal query As TQuery, _ ByVal qs As QueryStrategy _ ) As TQuery
'Usage
Dim query As TQuery Dim qs As QueryStrategy Dim value As TQuery value = EntityQueryExtensions.With(Of TQuery)(query, qs)
[Extension()] public static TQuery With<TQuery>( TQuery query, QueryStrategy qs ) where TQuery: IEntityQuery
var mgr1 = new DomainModelEntityManager(); var query1 = mgr1.Customers.Where(c => c.Country == "UK"); var query2 = query1.With(QueryStrategy.CacheOnly);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2